<!DOCTYPE HTML>
<html lang="zh-CN">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>投票页</title>
<meta http-equiv="keywords" content="${vote.title?html}"/>
<meta http-equiv="description" content="${vote.title?html}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">

<link href="/${resSys}/www/red/css/html5.css" rel="stylesheet" type="text/css"/>
<link href="/${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="/${resSys}/jquery.js" type="text/javascript"></script>
<script src="/${resSys}/front.js" type="text/javascript"></script>
<script src="/${res}/js/common.js" type="text/javascript"></script>

<link rel="stylesheet" href="/${resSys}/www/wicool/css/vote-detail.css">
<script type="text/javascript">
$(function() {
	Cms.siteFlow("${base}", location.href, document.referrer);
});
</script>
</head>

<body>
<div class="win">
<div class="car-img">
        <img src="/${resSys}/www/wicool/imgs/s2.jpg" alt="">
    </div>
    <br/>
    <header>
        <h1>${vote.title?html}</h1>
        <p class="pub-time">发布时间：${vote.startTime?html}</p>
    </header>
    <br/>
    <section class="pin-box">
        <div class="label"><B>投票规则</B></div>
        <p>${vote.description?html}
        </p>
    </section>
     <section class="pin-box">
       <div class="survey">
            <form action="${base}/vote.jspx" method="post">
            <input type="hidden" name="voteId" value="${vote.id}"/>
            <table>
            [#list vote.subtopics as subTopic]
            <tr>
            <td height="30" colspan="2" align="left"><B>${subTopic_index+1}、${subTopic.title?html}</B></td>
            </tr>
            [#if subTopic.isRadio]
            <tr>
            <td height="30" colspan="2" align="left">
            [#list subTopic.voteItems as item]
            <p>
            <input type="radio" name="itemIds${subTopic.id}" value="${item.id}"/>${item.title?html}
            </p>
            [/#list]
            </td>
            </tr>
            [/#if]
            [#if subTopic.isMulti]
            <tr>
            <td height="30" colspan="2" align="left">
            [#list subTopic.voteItems as item]
            <p>
            <input type="checkbox" name="itemIds${subTopic.id}" value="${item.id}"  id="${item.id}"/>${item.title?html}
            </p>
            [/#list]
            </td>
            </tr>
            [/#if]
            [#if subTopic.isText]
            <tr>
            <td height="30" colspan="2" align="left">
            <input name="reply" type="text"/>
            </td>
            </tr>
            [/#if]
            <input name=subIds type="hidden" value="${subTopic.id}"/>
            [/#list]
            </table>
            <button type="submit">提交</button>&nbsp; 
            <a href="${base}/vote_result.jspx?voteId=${vote.id}" target="_blank">查看投票结果</a>
            </form>
            </div>
    </section>
</div>
</body>
</html>